window: Don't queue resizes when inhibiting resizes
authorBenjamin Otte <otte@redhat.com>
Thu, 1 Oct 2015 20:36:34 +0000 (22:36 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 28 Oct 2015 18:44:29 +0000 (19:44 +0100)
Since the frame clock, the inhibit happens on the GDK level, so this
code is no longer necessary.

gtk/gtkcontainer.c
gtk/gtkwindow.c

index 0af6f3c677603c777882f7628fc7826dcbfb27b7..f10c57a1c51ded4fa67c2c8b067658570e133390 100644 (file)
@@ -1670,9 +1670,6 @@ gtk_container_destroy (GtkWidget *widget)
   GtkContainer *container = GTK_CONTAINER (widget);
   GtkContainerPrivate *priv = container->priv;
 
-  if (priv->resize_pending)
-    _gtk_container_dequeue_resize_handler (container);
-
   if (priv->restyle_pending)
     priv->restyle_pending = FALSE;
 
@@ -1901,15 +1898,6 @@ gtk_container_remove (GtkContainer *container,
   g_object_unref (container);
 }
 
-void
-_gtk_container_dequeue_resize_handler (GtkContainer *container)
-{
-  g_return_if_fail (GTK_IS_CONTAINER (container));
-  g_return_if_fail (container->priv->resize_pending);
-
-  container->priv->resize_pending = FALSE;
-}
-
 /**
  * gtk_container_set_resize_mode:
  * @container: a #GtkContainer
index d7ccf274c79a85b00cc67076c08a123a0872a895..54030caecb19f95ac0693ae7c54b85b30d33b820 100644 (file)
@@ -7685,7 +7685,7 @@ gtk_window_configure_event (GtkWidget         *widget,
   
   priv->configure_notify_received = TRUE;
 
-  gtk_widget_queue_resize (widget);
+  gtk_widget_queue_allocate (widget);
   gtk_container_queue_resize_handler (GTK_CONTAINER (widget));
   
   return TRUE;
@@ -9627,13 +9627,6 @@ gtk_window_move_resize (GtkWindow *window)
           * FIXME: we should also dequeue the pending redraws here, since
           * we handle those ourselves upon ->configure_notify_received==TRUE.
           */
-          G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
-         if (gtk_container_get_resize_mode (container) == GTK_RESIZE_QUEUE)
-           {
-             gtk_widget_queue_resize_no_redraw (widget);
-             _gtk_container_dequeue_resize_handler (container);
-           }
-          G_GNUC_END_IGNORE_DEPRECATIONS;
        }
     }
   else